﻿using UnityEngine;

namespace UniFrame.UI
{
    /// <summary>
    /// 面板元素
    /// </summary>
    public class PanelElem
    {
        /// <summary>
        /// 面板元素
        /// </summary>
        /// <param name="go"></param>
        /// <param name="panel"></param>
        public PanelElem(GameObject go,BasePanel panel)
        {
            gameObject = go;
            basePanel = panel;
        }
        /// <summary>
        /// 面板绑定对象
        /// </summary>
        public GameObject gameObject { get; private set; }
        /// <summary>
        /// 面板基类
        /// </summary>
        public BasePanel basePanel { get; private set; }
    }
}
